package com.ggh.jinjilive.dialog;

import android.content.Context;
import android.os.Bundle;
import android.view.View;

import com.ggh.jinjilive.R;
import com.ggh.jinjilive.utils.GeneralUtils;
import com.cy.dialog.BaseDialog;

public class SignDialog extends BaseDialog {

    public SignDialog(Context context) {
        super(context);
    }

    public SignDialog(Context context, int themeResId) {
        super(context, themeResId);
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        contentView(R.layout.dialog_sign);
        canceledOnTouchOutside(true);
        animType(AnimInType.CENTER);
        //马上签到
        findViewById(R.id.img_immediately).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                GeneralUtils.signIn();
                dismiss();
            }
        });
    }
}
